package com.panfeng.xcloud.boss.provider.member.web.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "用户手机号/邮箱修改请求")
public class UpdMobileEmailReqVO implements Serializable {

    @NotNull(message = "修改类型不能为空")
    @ApiModelProperty("修改类型 0:手机 1:邮箱")
    private Integer accountType;

    @NotBlank(message = "需要绑定的手机号或者邮箱号不能为空")
    @ApiModelProperty("需要绑定的手机号或者邮箱号")
    private String accountNumber;

    @NotBlank(message = "userId不能为空")
    @ApiModelProperty("用户ID")
    private String userId;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty("验证码")
    private String verifyCode;

    @NotBlank(message = "验证码类型不能为空")
    @ApiModelProperty("验证码类型 1.注册 2.登陆 3.账号安全")
    private String businessType;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password;

    @NotNull(message = "密码类型不能为空 0.登录密码 1.交易密码")
    @ApiModelProperty("密码类型")
    private Integer pwdType;

}
